package com.hopu.bean.shop;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class ShopTop10 implements Serializable, Comparable<ShopTop10>{

    private String sid;
    private String sname;
    private String type;
    private int count;

    @Override
    public int compareTo(ShopTop10 o) {
        return o.getCount() - getCount();
    }
}
